<template>
  <view class="">
    <view
      @click="myGoLink(item)"
      class="pd pt20 pm20 bgff row bbm"
      :key="item.applyFormId"
      v-for="item in list"
    >
      <view class="jjhhxeert cen fz26 z3">
        <image :src="'https://www.waibizi.com/'+((typeof item.headImg!='undefined')? item.headImg:item.userPhoto)" class="useertdrt"></image>
        <view class="">
          {{ item.chargeName }}
        </view>
      </view>
      <view class="col fz26 z3 jhhgxeert pl20">
        <view class="">
          场地类型: {{item.fieldTypeName}}
        </view>
        <view class="">
          开始时间: <text class="z9">{{ item.startTime }}</text>
        </view>
        <view class="">
          结束时间: <text class="z9">{{ item.endTime }}</text>
        </view>
         <view class="">
          审批单位: <text class="z9">{{ item.unityName }}</text>
        </view>
        <view class="red" v-if="!item.note">
          等待审核
        </view>
        <view class="z3" v-else>
          你的审核结果
          <icon
            v-if="item.result == 1"
            type="success_no_circle"
            class="cz ls ml10 sdfrtxe"
            size="18"
          ></icon>
          <icon
            v-else-if="item.result == 2"
            type="cancel"
            class="cz ls ml10 sdfrtxe"
            size="18"
          ></icon>
          <view class="inline red" v-else-if="item.result == null">待审核</view>
          <view class="inline red" v-else-if="item.result == 0">用户已撤销</view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  props: {
    list: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {};
  },
  components: {},
  methods: {
    myGoLink(item) {
       let path =''
        if( this.$mp) {
          path = this.$mp.page.route
        } else {
          path = this.$route.path
        }
      let fp = false
      if(!path.match('shenhe/index')) fp =true
       uni.navigateTo({
        url:  '/pages/gongzuo/shenhe/particulars?applyFormId=' +
        item.id +
        '&status=' +
        item.result +
        '&note=' +
        item.note +
        '&fp='+ fp
      });
       
    }
  },
  mounted() {},
};
</script>
<style scoped>
.inline{
  margin-left: 10upx;
  display: inline;
}
.jjhhxeert {
  width: 180upx;
}

.jhhgxeert {
  line-height: 50upx;
}

.sdfrtxe {
  position: relative;
  margin-top: -10upx;
}

.useertdrt {
  border-radius: 8upx;
  width: 160upx;
  height: 160upx;
  padding: 10upx;
  border: 1px solid #e2e2e2;
}
</style>
